export default class pattern{
  constructor(ctx,path,rep = "repeat"){
    this.texture = wx.createImage()
    this.texture.src = path
    this.obj = ctx.createPattern(this.texture, rep)  //"repeat" "repeat-x" , "repeat-y"  "no-repeat" 
  }
}